package edu.wuster.blog.entity;
/*
评论实体类*/


import edu.wuster.blog.interf.AddGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment{

    private Integer id;

    private String username;

    private Integer blogId;

    @NotBlank(message = "评论内容不能为空",groups = AddGroup.class)
    private String text;

    private LocalDateTime createTime;

}

